package com.etooling.pdm.entity;

import com.etooling.framework.svo.AbstractEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * 产品属性配置
 *
 * @author dan
 * @date 2023/12/25 9:28
 */
@Data
@Entity
@Table(name = "t_goods_prop_setting", schema = "pdm")
public class GoodsPropSetting extends AbstractEntity {
    public static final String STATUS_RUNNING = "启用";
    public static final String STATUS_DELETE = "删除";

    String name;
    Integer seq;//显示顺序
    String status;//状态
    String companyId;//所属帐套
    GoodsType goodsType;

    @ManyToOne(targetEntity = GoodsType.class, fetch = FetchType.EAGER)
    @JoinColumn(name = "goods_type_id")
    public GoodsType getGoodsType() {
        return goodsType;
    }


}
